extends Area2D
var end_menu: PackedScene = preload("res://scenes/ui/menu/next_level_or_back_in_menu_ui.tscn")
var loaded: bool = false

func _on_body_entered(body):
	if "wand_invertory" in body and not loaded:
			add_child(end_menu.instantiate())
			loaded = true
		
